package com.scy.java.object.inter;

public class TestComputer {
    public static void main(String[] args) {
        USB3 usd = new Mouse();//向上造型
        usd.start();
        usd.in();
        usd.out();
        usd.stop();
        USB3.show();//使用接口的静态方法，变量时，只能用接口名.
        System.out.println(USB3.MAX_SPEED);
        System.out.println("-------------");
        USB3 usb3 = new KeyBoard();
        usb3.start();
        usb3.in();
        usb3.out();
        usb3.stop();


    }
}
